﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Calendar/CalendarEmp.master" AutoEventWireup="true" CodeBehind="ListView.aspx.cs" Inherits="HRdex_Final.Calendar.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div align="center">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="EventID" 
        DataSourceID="SqlDataSource1" Width="702px">
        <Columns>
            <asp:BoundField DataField="EventID" HeaderText="EventID" InsertVisible="False" 
                ReadOnly="True" SortExpression="EventID" Visible="False" />
            <asp:BoundField DataField="date" DataFormatString="{0:MM/dd/yyyy}" 
                HeaderText="Date" HtmlEncode="False" SortExpression="date">
            <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:BoundField DataField="Title" HeaderText="Event Title" 
                SortExpression="Title">
            <ItemStyle Width="230px" />
            </asp:BoundField>
            <asp:BoundField DataField="Description" HeaderText="Details" 
                SortExpression="Description" />
            <asp:BoundField DataField="EmployeeID" HeaderText="EmployeeID" 
                SortExpression="EmployeeID" Visible="False" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
        SelectCommand="SELECT * FROM [catEvent] ORDER BY [date]"></asp:SqlDataSource>

</div>



</asp:Content>
